package App.vo;

import simple.form.cache.Key;
import simple.form.controller.Request;
import simple.form.controller.Response;
import simple.form.core.RequestBean;
import simple.form.core.annotation.ParameterBean;
import simple.form.core.annotation.ParameterBeanField;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Administrator on 2017/2/23.
 */
@ParameterBean
public class DemoVo extends RequestBean<DemoVo>{
    private int age;
    @ParameterBeanField(isNull=false,tip ="请输入名字")
    private String name;

    public DemoVo(Request request) {
        super(request);
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DemoVo(){

    }

    @Override
    public String toString() {
        return "DemoVo{" +
                "age=" + age +
                ", name='" + name + '\'' +
                '}';
    }

    @Override
    public String createKey() {
        return age+name;
    }
}
